package com.ruoyi.system.domain.vo;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.time.LocalDateTime;
import java.util.Date;

public class ComplaintRecord {
    private String category; // 投诉类别，如“绕路”、“服务质量”、“拒载”
    private String description; // 投诉描述
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date timestamp; // 投诉时间

    // 构造函数
    public ComplaintRecord(String category, String description, Date timestamp) {
        this.category = category;
        this.description = description;
        this.timestamp = timestamp;
    }

    // Getter 和 Setter 方法
    public String getCategory() {
        return category;
    }

    public void setCategory(String category) {
        this.category = category;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Date getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(Date timestamp) {
        this.timestamp = timestamp;
    }

    // toString 方法，用于打印投诉记录信息
    @Override
    public String toString() {
        return "ComplaintRecord{" +
                "category='" + category + '\'' +
                ", description='" + description + '\'' +
                ", timestamp=" + timestamp +
                '}';
    }
}